<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>es6 解构</title>
</head>
<body>
<script>
    /*
        let array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
        let [a,b,c,d,e,f,g,h,i,j] = array;

        console.log(a);
        console.log(b);
        console.log(c);
        console.log(d);
        console.log(e);
        console.log(f);
        console.log(g);
        console.log(h);
        console.log(i);
        console.log(j);
     */

    let array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
    let [a, b, c, ] = array;

    console.log(a);
    console.log(b);
    console.log(c);


</script>
</body>
</html>